home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / Clueless.swf / scripts / Forms / UpsellBeatForm.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  1.7 KB  |  58 lines

  1. package Forms
  2. {
  3.    import flash.events.Event;
  4.    import flash.events.MouseEvent;
  5.    import flash.net.URLRequest;
  6.    import flash.net.navigateToURL;
  7.    import flash.utils.Timer;
  8.    
  9.    [Embed(source="/_assets/assets.swf", symbol="Forms.UpsellBeatForm")]
  10.    public class UpsellBeatForm extends CluelessBaseForm
  11.    {
  12.        
  13.       
  14.       protected var _iSnapshotCountdown:int = 0;
  15.       
  16.       public var _bBuyNow:Button;
  17.       
  18.       public var _bDownload:Button;
  19.       
  20.       protected var _timer:Timer;
  21.       
  22.       public var _bPlay:Button;
  23.       
  24.       protected var _dragcontroller:DragController;
  25.       
  26.       public function UpsellBeatForm()
  27.       {
  28.          _dragcontroller = new DragController();
  29.          _iSnapshotCountdown = 0;
  30.          _timer = new Timer(200,0);
  31.          super();
  32.          _bPlay.addEventListener(MouseEvent.CLICK,onPlayAgain,false,0,true);
  33.          _bBuyNow.addEventListener(MouseEvent.CLICK,onBuyNow,false,0,true);
  34.          _bDownload.addEventListener(MouseEvent.CLICK,onDownload,false,0,true);
  35.       }
  36.       
  37.       internal function onBuyNow(param1:Event) : void
  38.       {
  39.          navigateToURL(new URLRequest("http://www.bigfishgames.com/download-games/5049/clueless/index.html"));
  40.       }
  41.       
  42.       internal function onPlayAgain(param1:Event) : void
  43.       {
  44.          setFormPermanent(new TitleForm());
  45.       }
  46.       
  47.       internal function onDownload(param1:Event) : void
  48.       {
  49.          navigateToURL(new URLRequest("http://www.bigfishgames.com/download-games/5049/clueless/download.html"));
  50.       }
  51.       
  52.       internal function onQuit(param1:Event) : void
  53.       {
  54.          MainDocument.forceQuit();
  55.       }
  56.    }
  57. }
  58.